<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript">
function validate(){
	if(form.article_name.value==""){
		alert("文章名不能为空");	
		return false;
	}
}
</script>
<title>写文章</title>
</head>
<body>
<form action="write" id="form" onsubmit="return validate()" method="post">
<input type="submit" value="发布"><br>
文章名：<input type="text" name="article_name">
</form>
<br>
<textarea rows="40" cols="200" name="article_content" form="form"></textarea>
</body>
</html>